-- GENERATED SPELL FOR [Conqueror Krenna] --


function spell0_27727(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27727', 574, 1)
end

function spell1_27727(pUnit, Event) --@Fixate,n/a--
pUnit:FullCastSpellOnTarget(34719,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27727', 2264, 1)
end

function spell2_27727(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27727', 5321, 1)
end

function spell3_27727(pUnit, Event) --@Slam,n/a--
pUnit:FullCastSpellOnTarget(11430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27727', 2294, 1)
end

function Sorts_27727(pUnit, Event)
local choix_sorts_27727 = math.random(0, 3)
if choix_sorts_27727 == 0 then
pUnit:RegisterEvent('spell0_27727', 1, 1)
end
if choix_sorts_27727 == 1 then
pUnit:RegisterEvent('spell1_27727', 1, 1)
end
if choix_sorts_27727 == 2 then
pUnit:RegisterEvent('spell2_27727', 1, 1)
end
if choix_sorts_27727 == 3 then
pUnit:RegisterEvent('spell3_27727', 1, 1)
end
end

function mob27727_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27727', math.random(1500, 3000), 1)
end

function mob27727_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27727_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27727_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27727, 1, 'mob27727_Action')
RegisterUnitEvent(27727, 2, 'mob27727_Leave')
RegisterUnitEvent(27727, 3, 'mob27727_Kill')
RegisterUnitEvent(27727, 4, 'mob27727_Die')
